﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ensemble_Windows
{
    /// <summary>
    /// 文字渲染
    /// </summary>
    public class TextRender
    {
        /// <summary>
        /// 文字
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 文字宽度
        /// </summary>
        public int Width { get; set; }
        /// <summary>
        /// 文字高度
        /// </summary>
        public int Height { get; set; }
        /// <summary>
        /// 等待垂直渐隐
        /// </summary>
        public bool WaitVerticalBlanking { get; set; }

        /// <summary>
        /// 文字渲染
        /// </summary>
        public TextRender()
            : this("")
        {

        }

        /// <summary>
        /// 文字渲染
        /// </summary>
        /// <param name="title">标题</param>
        public TextRender(string title)
            : this(title, 800, 600)
        { }

        /// <summary>
        /// 文字渲染
        /// </summary>
        /// <param name="title">标题</param>
        /// <param name="width">宽度</param>
        /// <param name="height">高度</param>
        public TextRender(string title, int width, int height)
        {
            Title = title;
            Width = width;
            Height = height;
            WaitVerticalBlanking = false;
        }
    }
}
